package com.tongji.housediy.view.titlewindows
{
	import com.tongji.housediy.view.titlewindows.WaitingOnlineTitleWindow;
	
	import flash.events.MouseEvent;
	
	import mx.managers.PopUpManager;
	
	import org.robotlegs.mvcs.Mediator;
	
	
	/**
	 * 
	 * @author Barbiel
	 * 2011-7-26
	 */
	public class WaitingOnlineTitleWindowMediator extends Mediator
	{
		[Inject]
		public var view:WaitingOnlineTitleWindow;
		
		override public function onRegister():void
		{
			view.closeBtn.addEventListener(MouseEvent.CLICK, closeBtnClickHandler);
		}
		
		private function closeBtnClickHandler(event:MouseEvent):void
		{
			PopUpManager.removePopUp(view);
			mediatorMap.removeMediatorByView(view);
		}
	}
}